<template>
  <Model
      :width="350"
      :show="show"
      title="审核"
      @confirm="confirm"
      @cancel="cancel"
      cancel-text="不通过"
      ok-text="通过"
      :footer="true"
      @noPass="noPass"
  >
  <a-card slot="card" :title="list.name+ '的公司情况'" style="width: 300px">
    <p>企业名称:{{list.name}}</p>
    <p>营业编号:{{list.businessId}}</p>
    <p>企业联系人:{{list.leader}}</p>
    <p>手机号:{{list.phone}}</p>
    <p>电子邮箱:{{list.email}}</p>
    <p>所属教研室:{{list.belong}}</p>
    <p>状态:{{list.status}}</p>
    <p>备注:{{list.text}}</p>
    <p>所附文件( 点击即可下载文件 ):<a :href="IP + list.file">文件</a></p>
  </a-card>

  </Model>
</template>

<script>
import Model from "@/components/common/model/Model";
import {IP} from "@/assets/data/other";
export default {
  components:{ Model },
  props:{
    list:{
      type:Object,
      default:() => { return {} }
    },
    show:{
      type:Boolean,
      default() {
        return false;
      },
    }
  },
  name: "Card",
  data(){ return { IP }  },
  methods:{ confirm() {
      console.log(11);
      this.$emit("confirm", {
        check:1,
        id:this.list.id
      });
    },
    cancel(){ this.$emit("cancel"); },
    noPass() {
    console.log(123);
    this.$emit("noPass",{
            check:2,
            id:this.list.id
      });
     },
    },
}
</script>

<style scoped>

</style>